package cn.stylefeng.guns.modular.storage.mapper;

import cn.stylefeng.guns.modular.storage.entity.StorageAllocationOut;
import cn.stylefeng.guns.modular.storage.model.params.StorageAllocationOutParam;
import cn.stylefeng.guns.modular.storage.model.result.StorageAllocationOutResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 调拨出库表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2021-12-02
 */
public interface StorageAllocationOutMapper extends BaseMapper<StorageAllocationOut> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2021-12-02
     */
    List<StorageAllocationOutResult> customList(@Param("paramCondition") StorageAllocationOutParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2021-12-02
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") StorageAllocationOutParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2021-12-02
     */
    Page<StorageAllocationOutResult> customPageList(@Param("page") Page page, @Param("paramCondition") StorageAllocationOutParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2021-12-02
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") StorageAllocationOutParam paramCondition);

}
